package com.SuanFa.ZuoChengYun;

import java.util.Arrays;
import java.util.Objects;
import java.util.Scanner;

public class a4 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        String str = scan.next();
        String[] split = str.split("");
        int temp = -1;
        for (int i = 0; i <split.length; i++) {
            if (split[i].equals("?")){
                   temp=i;

            }
        }
        if (temp==0){
            if(Objects.equals(split[1], "+")){
                int i1 = Integer.parseInt(split[2]);
                int i2 = Integer.parseInt(split[4]);
                System.out.println(i2-i1);
                return;
            }
            if(Objects.equals(split[1], "-")){
                int i1 = Integer.parseInt(split[2]);
                int i2 = Integer.parseInt(split[4]);
                System.out.println(i2+i1);
                return;
            }
            if(Objects.equals(split[1], "*")){
                int i1 = Integer.parseInt(split[2]);
                int i2 = Integer.parseInt(split[4]);
                System.out.println(i2/i1);
                return;
            }
            if(Objects.equals(split[1], "/")){
                int i1 = Integer.parseInt(split[2]);
                int i2 = Integer.parseInt(split[4]);
                System.out.println(i2*i1);
                return;
            }
        }
        if(temp==1){
            int i = Integer.parseInt(split[0]);
            int i1 = Integer.parseInt(split[2]);
            int i2 = Integer.parseInt(split[4]);
            if ((i+i1)==i2){
                System.out.println("+");
                return;
            }
            if ((i-i1)==i2){
                System.out.println("-");
                return;
            }
            if ((i*i1)==i2){
                System.out.println("*");
                return;
            }
            if ((i/i1)==i2){
                System.out.println("/");
                return;
            }

        }
        if (temp==2){
            if(Objects.equals(split[1], "+")){
                int i = Integer.parseInt(split[0]);
                int i2 = Integer.parseInt(split[4]);
                System.out.println(i2-i);
                return;
            }
            if(Objects.equals(split[1], "-")){
                int i = Integer.parseInt(split[0]);
                int i2 = Integer.parseInt(split[4]);
                System.out.println(i-i2);
                return;
            }
            if(Objects.equals(split[1], "*")){
                int i = Integer.parseInt(split[0]);
                int i2 = Integer.parseInt(split[4]);
                System.out.println(i2/i);
                return;
            }
            if(Objects.equals(split[1], "/")){
                int i = Integer.parseInt(split[0]);
                int i2 = Integer.parseInt(split[4]);
                System.out.println(i/i2);
                return;
            }
        }
        if (temp==4){
            if(Objects.equals(split[1], "+")){
                int i = Integer.parseInt(split[0]);
                int i2 = Integer.parseInt(split[2]);
                System.out.println(i2+i);
                return;
            }
            if(Objects.equals(split[1], "-")){
                int i = Integer.parseInt(split[0]);
                int i2 = Integer.parseInt(split[2]);
                System.out.println(i-i2);
                return;
            }
            if(Objects.equals(split[1], "*")){
                int i = Integer.parseInt(split[0]);
                int i2 = Integer.parseInt(split[2]);
                System.out.println(i2*i);
                return;
            }
            if(Objects.equals(split[1], "/")){
                int i = Integer.parseInt(split[0]);
                int i2 = Integer.parseInt(split[2]);
                System.out.println(i/i2);
                return;
            }
        }
        scan.close();
    }
}
